
<div *ngIf="plan">
    <h2><span>Plan</span> {{plan.id}}</h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span>Name</span></dt>
        <dd>
            <span>{{plan.name}}</span>
        </dd>
        <dt><span>Classes</span></dt>
        <dd>
            <span>{{plan.classes}}</span>
        </dd>
        <dt><span>Content</span></dt>
        <dd>
            <span>{{plan.content}}</span>
        </dd>
        <dt><span>Hits</span></dt>
        <dd>
            <span>{{plan.hits}}</span>
        </dd>
        <dt><span>Update Time</span></dt>
        <dd>
            <span>{{plan.updateTime | date:'medium'}}</span>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'plan/'+ plan.id + '/edit'} }]"
            replaceUrl="true"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span> Edit</span>
    </button>
</div>
